﻿Imports SanDauGia.DAL.SanDauGiaTableAdapters

<System.ComponentModel.DataObject()>
Partial Class SanDauGia
    <System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, False)>
    Public Shared Function LoadSanPhamTheoDanhMuc(ByVal MaDanhMuc As Integer) As SANPHAMDataTable
        Dim sp As New SANPHAMTableAdapter
        Return sp.GetDataByLoadSanPhamTheoDanhMuc(MaDanhMuc)
    End Function

    <System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, False)>
    Public Shared Function LoadLoaiSP() As DataTable
        Dim loai As New LOAISANPHAMTableAdapter()
        Return loai.GetData()
    End Function

    <System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, False)>
    Public Shared Function LoadDanhMucSP() As DataTable
        Dim danhmuc As New DANHMUCSANPHAMTableAdapter
        Return danhmuc.GetData()
    End Function

    <System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, False)>
    Public Shared Function LoadAdv() As DataTable
        Dim qc As New QUANGCAOTableAdapter
        Return qc.GetData()
    End Function
End Class
